﻿using System;
using System.Collections.Generic;

using E.Model;
using E.BLL;
using E.Enum;
using E.Web.UI.Page;

using X.Common;

namespace E.Web.Teacher.sys.notice
{
    public partial class View : TeacherBasePage
    {
        public int id;
        public NoticeModel model = new NoticeModel();
        public IList<DictAreaModel> areaList;
        public string area_v;

        protected override void ShowPage()
        {
            id = XRequest.GetInt("id", -1);

            if (id != -1)
            {
                NoticeBLL bll = new NoticeBLL();
                model = bll.GetNoticeInfo(id);
                areaList = GetTeacherAreaList(teacherid);

                area_v = Convert2String(model.AreaIDList);
            }
            else
            {
                ExecuteJS("alert('服务器忙，请稍后再试'); window.location = '/sys/notice/List.aspx';");
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}
